package edu.java.homework.hw07.test3;

// What will be the resultTest3

class Base {
    public void method(int i) {
	System.out.println("Value is " + i);
    }
}

public class Test3 extends Base {

    // overriding
    public void method(int j) {
	System.out.println("This value is " + j);
    }

    // overloading
    public void method(String s) {
	System.out.println("I was passed " + s);
    }

    public static void main(String[] args) {
	Base b1 = new Base();
	Base b2 = new Test3();
	b1.method(5);
	b2.method(6);
    }
}

// console:
// Value is 5
// This value is 6